package com.zhiche.lisa.bms.service.receipt;

import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.receipt.ReceiptAffirmDtl;
import com.zhiche.lisa.bms.pojo.vo.receipt.ReceiptAffirmDtlAndInvoiceVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收款确认明细表 服务类
 * </p>
 *
 * @author hongbo
 * @since 2018-09-27
 */
public interface ReceiptAffirmDtlService extends IService<ReceiptAffirmDtl> {
    /**
     * 根据条件获取收款确认明细
     *
     * @param condition
     * @return
     */
    List<ReceiptAffirmDtl> selectReceiptAffirmDtlList(Map<String, Object> condition);

    /**
     * 根据头id获取收款确认明细
     *
     * @param headId
     * @return
     */
    List<ReceiptAffirmDtl> selectReceiptAffirmDtlByHeadId(Long headId);

    /**
     * 将收款确认转换明细并绑定
     * @param receiptAffirmDtls
     * @return
     */
    List<ReceiptAffirmDtlAndInvoiceVO> bindInvoiceReceiptAffirm(List<ReceiptAffirmDtl> receiptAffirmDtls);
}
